<?php

use yii\bootstrap\ActiveForm;
use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model app\models\Post */

$this->title = '站点设置';
$this->params['title'] = 'Posts';
$this->params['title_desc'] = 'Edit';
$this->params['breadcrumbs'][] = '站点设置';
?>
<div class="box box-primary post-update">
    <div class="box-header with-border">
        <?php  $_model = 'app\models\Post'; ?>
        <?php  if (isset($_model::$icon)): ?>
            <i class="<?=  $_model::icon() ?>"></i>
        <?php  endif; ?>
        <h1 class="box-title">站点设置</h1>
        <div class="box-tools">
        </div>
    </div>
    <div class="box-body">

        <div class="post-form">

            <?php $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal'],
                'fieldConfig' => [
                    'template' => "{label}\n<div class=\"col-lg-8\">{input}</div>\n<div class=\"col-lg-2\">{error}</div>",
                    'labelOptions' => ['class' => 'col-lg-1 control-label'],
                ],
            ]); ?>
            <?= $form->field($model, 'sys_site_name') ?>
            <?= $form->field($model, 'sys_site_url') ?>
            <?= $form->field($model, 'sys_address') ?>
            <?= $form->field($model, 'sys_lat_long') ?>
            <?= $form->field($model, 'sys_site_description') ?>
            <?= $form->field($model, 'sys_site_keywords') ?>
            <?= $form->field($model, 'sys_phone') ?>
            <?= $form->field($model, 'sys_site_email') ?>
            <?= $form->field($model, 'sys_qq') ?>
            <?= $form->field($model, 'sys_wx') ?>
        </div>
    </div>
    <div class="box-footer">
        <?= Html::submitButton(Html::tag('span', '', ['class' => 'glyphicon glyphicon-floppy-disk']) . ' 保存',
            ['class' => 'btn btn-primary']) ?>
        <?php ActiveForm::end(); ?>

    </div>
</div>
<?php $this->render('@app/modules/admin//views/layouts/modal-form', ['form'=>$form])?>